﻿
namespace NetROS.Tiers.Windows.Forms
{
	/// <summary>
	/// This is the abstract edit form for the <see cref="Entities.PutniNalog"/> entity.
	/// </summary>
	/// <remarks>This class is overwritten by .netTiers at each generation.</remarks>
	[System.ComponentModel.DesignerCategoryAttribute("code")]
	public abstract class PutniNalogEditControlBase : System.Windows.Forms.UserControl
	{
		#region Fields
		
		//private System.Windows.Forms.TableLayoutPanel uxTableLayoutPanel;
		/// <summary>
		/// The ErrorProvider for the Entity;
		/// </summary>
		protected System.Windows.Forms.ErrorProvider uxErrorProvider;
		
		/// <summary>
		/// The BindingSource for the entity.
		///</summary>
		protected System.Windows.Forms.BindingSource uxBindingSource;
						
		
		/// <summary>
		/// TextBox for the ID property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxID;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the ID property.
		/// </summary>
		protected System.Windows.Forms.Label uxIDLabel;
		
		/// <summary>
		/// TextBox for the Oznaka property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxOznaka;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the Oznaka property.
		/// </summary>
		protected System.Windows.Forms.Label uxOznakaLabel;
		
		/// <summary>
		/// ComboBox for the IDDjelatnik property.
		/// </summary>
		protected System.Windows.Forms.ComboBox uxIDDjelatnik;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the IDDjelatnik property.
		/// </summary>
		protected System.Windows.Forms.Label uxIDDjelatnikLabel;
		
		/// <summary>
		/// DataTimePicker for the Datum property.
		/// </summary>
		protected System.Windows.Forms.DateTimePicker uxDatum;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the Datum property.
		/// </summary>
		protected System.Windows.Forms.Label uxDatumLabel;
		
		/// <summary>
		/// DataTimePicker for the DatumObracuna property.
		/// </summary>
		protected System.Windows.Forms.DateTimePicker uxDatumObracuna;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the DatumObracuna property.
		/// </summary>
		protected System.Windows.Forms.Label uxDatumObracunaLabel;
		
		/// <summary>
		/// TextBox for the Opis property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxOpis;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the Opis property.
		/// </summary>
		protected System.Windows.Forms.Label uxOpisLabel;
		
		/// <summary>
		/// TextBox for the IDStatus property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxIDStatus;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the IDStatus property.
		/// </summary>
		protected System.Windows.Forms.Label uxIDStatusLabel;
		
		/// <summary>
		/// ComboBox for the IDBlagajnaStavkaIsplata property.
		/// </summary>
		protected System.Windows.Forms.ComboBox uxIDBlagajnaStavkaIsplata;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the IDBlagajnaStavkaIsplata property.
		/// </summary>
		protected System.Windows.Forms.Label uxIDBlagajnaStavkaIsplataLabel;
		
		/// <summary>
		/// TextBox for the IDBlagajnaStavkaStorno property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxIDBlagajnaStavkaStorno;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the IDBlagajnaStavkaStorno property.
		/// </summary>
		protected System.Windows.Forms.Label uxIDBlagajnaStavkaStornoLabel;
		
		/// <summary>
		/// TextBox for the PredvidenoTrajanje property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxPredvidenoTrajanje;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the PredvidenoTrajanje property.
		/// </summary>
		protected System.Windows.Forms.Label uxPredvidenoTrajanjeLabel;
		
		/// <summary>
		/// TextBox for the PredvidenoTrajanjeDana property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxPredvidenoTrajanjeDana;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the PredvidenoTrajanjeDana property.
		/// </summary>
		protected System.Windows.Forms.Label uxPredvidenoTrajanjeDanaLabel;
		
		/// <summary>
		/// TextBox for the Napomena property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxNapomena;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the Napomena property.
		/// </summary>
		protected System.Windows.Forms.Label uxNapomenaLabel;
		
		/// <summary>
		/// TextBox for the IDDjelatnikOdobrio property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxIDDjelatnikOdobrio;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the IDDjelatnikOdobrio property.
		/// </summary>
		protected System.Windows.Forms.Label uxIDDjelatnikOdobrioLabel;
		
		/// <summary>
		/// TextBox for the IzvjestajPutovanja property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxIzvjestajPutovanja;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the IzvjestajPutovanja property.
		/// </summary>
		protected System.Windows.Forms.Label uxIzvjestajPutovanjaLabel;
		
		/// <summary>
		/// TextBox for the IDDjelatnikLikvidirao property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxIDDjelatnikLikvidirao;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the IDDjelatnikLikvidirao property.
		/// </summary>
		protected System.Windows.Forms.Label uxIDDjelatnikLikvidiraoLabel;
		
		/// <summary>
		/// TextBox for the IDDjelatnikBlagajna property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxIDDjelatnikBlagajna;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the IDDjelatnikBlagajna property.
		/// </summary>
		protected System.Windows.Forms.Label uxIDDjelatnikBlagajnaLabel;
		
		/// <summary>
		/// TextBox for the RedBr property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxRedBr;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the RedBr property.
		/// </summary>
		protected System.Windows.Forms.Label uxRedBrLabel;
		#endregion
		
		#region Main entity
		private Entities.PutniNalog _PutniNalog;
		/// <summary>
		/// Gets or sets the <see cref="Entities.PutniNalog"/> entity to edit with this form.
		/// </summary>
		/// <value>The <see cref="Entities.PutniNalog"/> instance.</value>
		public Entities.PutniNalog PutniNalog
		{
			get {return this._PutniNalog;}
			set
			{
				this._PutniNalog = value;
				if (value != null) 
				{
					this.uxBindingSource.DataSource = value;
					BindControls();
				}			
				
			}
		}
		#endregion
		
		/// <summary>
		/// Binds the controls.
		/// </summary>
		private void BindControls()
		{
			this.uxID.DataBindings.Clear();
			this.uxID.DataBindings.Add("Text", this.uxBindingSource, "ID", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxOznaka.DataBindings.Clear();
			this.uxOznaka.DataBindings.Add("Text", this.uxBindingSource, "Oznaka", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxIDDjelatnik.DataBindings.Clear();
			this.uxIDDjelatnik.DataBindings.Add("SelectedValue", this.uxBindingSource, "IDDjelatnik", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxDatum.DataBindings.Clear();
			this.uxDatum.DataBindings.Add("Value", this.uxBindingSource, "Datum", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxDatumObracuna.DataBindings.Clear();
			this.uxDatumObracuna.DataBindings.Add("Value", this.uxBindingSource, "DatumObracuna", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxOpis.DataBindings.Clear();
			this.uxOpis.DataBindings.Add("Text", this.uxBindingSource, "Opis", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxIDStatus.DataBindings.Clear();
			this.uxIDStatus.DataBindings.Add("Text", this.uxBindingSource, "IDStatus", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxIDBlagajnaStavkaIsplata.DataBindings.Clear();
			this.uxIDBlagajnaStavkaIsplata.DataBindings.Add("SelectedValue", this.uxBindingSource, "IDBlagajnaStavkaIsplata", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxIDBlagajnaStavkaStorno.DataBindings.Clear();
			this.uxIDBlagajnaStavkaStorno.DataBindings.Add("Text", this.uxBindingSource, "IDBlagajnaStavkaStorno", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxPredvidenoTrajanje.DataBindings.Clear();
			this.uxPredvidenoTrajanje.DataBindings.Add("Text", this.uxBindingSource, "PredvidenoTrajanje", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxPredvidenoTrajanjeDana.DataBindings.Clear();
			this.uxPredvidenoTrajanjeDana.DataBindings.Add("Text", this.uxBindingSource, "PredvidenoTrajanjeDana", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxNapomena.DataBindings.Clear();
			this.uxNapomena.DataBindings.Add("Text", this.uxBindingSource, "Napomena", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxIDDjelatnikOdobrio.DataBindings.Clear();
			this.uxIDDjelatnikOdobrio.DataBindings.Add("Text", this.uxBindingSource, "IDDjelatnikOdobrio", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxIzvjestajPutovanja.DataBindings.Clear();
			this.uxIzvjestajPutovanja.DataBindings.Add("Text", this.uxBindingSource, "IzvjestajPutovanja", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxIDDjelatnikLikvidirao.DataBindings.Clear();
			this.uxIDDjelatnikLikvidirao.DataBindings.Add("Text", this.uxBindingSource, "IDDjelatnikLikvidirao", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxIDDjelatnikBlagajna.DataBindings.Clear();
			this.uxIDDjelatnikBlagajna.DataBindings.Add("Text", this.uxBindingSource, "IDDjelatnikBlagajna", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxRedBr.DataBindings.Clear();
			this.uxRedBr.DataBindings.Add("Text", this.uxBindingSource, "RedBr", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
		}					
		
		#region Constructor
		
		/// <summary>
		/// Initializes a new instance of the <see cref="PutniNalogEditControlBase"/> class.
		/// </summary>
		public PutniNalogEditControlBase()
		{
			InitializeComponent();			
			
			this.uxBindingSource.CurrentItemChanged += new System.EventHandler(uxBindingSource_currentItemChanged);
		}		
		
		/// <summary>
		/// 
		/// </summary>
		private void uxBindingSource_currentItemChanged(object sender, System.EventArgs e)
		{
			if (_PutniNalog != null) _PutniNalog.Validate();
		}	
				
		/// <summary>
		/// Initializes the component.
		/// </summary>
		public void InitializeComponent()
		{
			this.components = new System.ComponentModel.Container();
			this.uxErrorProvider = new System.Windows.Forms.ErrorProvider(this.components);
			this.uxBindingSource = new System.Windows.Forms.BindingSource(this.components);
			
			//this.uxTableLayoutPanel = new System.Windows.Forms.TableLayoutPanel();
			this.uxID = new System.Windows.Forms.TextBox();
			uxIDLabel = new System.Windows.Forms.Label();
			this.uxOznaka = new System.Windows.Forms.TextBox();
			uxOznakaLabel = new System.Windows.Forms.Label();
			this.uxIDDjelatnik = new System.Windows.Forms.ComboBox();
			uxIDDjelatnikLabel = new System.Windows.Forms.Label();
			this.uxDatum = new System.Windows.Forms.DateTimePicker();
			uxDatumLabel = new System.Windows.Forms.Label();
			this.uxDatumObracuna = new System.Windows.Forms.DateTimePicker();
			uxDatumObracunaLabel = new System.Windows.Forms.Label();
			this.uxOpis = new System.Windows.Forms.TextBox();
			uxOpisLabel = new System.Windows.Forms.Label();
			this.uxIDStatus = new System.Windows.Forms.TextBox();
			uxIDStatusLabel = new System.Windows.Forms.Label();
			this.uxIDBlagajnaStavkaIsplata = new System.Windows.Forms.ComboBox();
			uxIDBlagajnaStavkaIsplataLabel = new System.Windows.Forms.Label();
			this.uxIDBlagajnaStavkaStorno = new System.Windows.Forms.TextBox();
			uxIDBlagajnaStavkaStornoLabel = new System.Windows.Forms.Label();
			this.uxPredvidenoTrajanje = new System.Windows.Forms.TextBox();
			uxPredvidenoTrajanjeLabel = new System.Windows.Forms.Label();
			this.uxPredvidenoTrajanjeDana = new System.Windows.Forms.TextBox();
			uxPredvidenoTrajanjeDanaLabel = new System.Windows.Forms.Label();
			this.uxNapomena = new System.Windows.Forms.TextBox();
			uxNapomenaLabel = new System.Windows.Forms.Label();
			this.uxIDDjelatnikOdobrio = new System.Windows.Forms.TextBox();
			uxIDDjelatnikOdobrioLabel = new System.Windows.Forms.Label();
			this.uxIzvjestajPutovanja = new System.Windows.Forms.TextBox();
			uxIzvjestajPutovanjaLabel = new System.Windows.Forms.Label();
			this.uxIDDjelatnikLikvidirao = new System.Windows.Forms.TextBox();
			uxIDDjelatnikLikvidiraoLabel = new System.Windows.Forms.Label();
			this.uxIDDjelatnikBlagajna = new System.Windows.Forms.TextBox();
			uxIDDjelatnikBlagajnaLabel = new System.Windows.Forms.Label();
			this.uxRedBr = new System.Windows.Forms.TextBox();
			uxRedBrLabel = new System.Windows.Forms.Label();
			
			((System.ComponentModel.ISupportInitialize)(this.uxBindingSource)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.uxErrorProvider)).BeginInit();
			this.SuspendLayout();
			
			// 
			// uxTableLayoutPanel
			// 
			//this.uxTableLayoutPanel.AutoSize = true;
			//this.uxTableLayoutPanel.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
			//this.uxTableLayoutPanel.ColumnCount = 2;
			//this.uxTableLayoutPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 120F));
			//this.uxTableLayoutPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 250F));
			//this.uxTableLayoutPanel.Location = new System.Drawing.System.Drawing.Point(3, 3);
			//this.uxTableLayoutPanel.Name = "uxTableLayoutPanel";
			//this.uxTableLayoutPanel.RowCount = 2;
			//this.uxTableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 25F));
			//this.uxTableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 25F));
			//this.uxTableLayoutPanel.Size = new System.Drawing.Size(450, 50);
			//this.uxTableLayoutPanel.TabIndex = 0;
			
			//
			// uxErrorProvider
			//
			this.uxErrorProvider.ContainerControl = this;
			this.uxErrorProvider.DataSource = this.uxBindingSource;
			
			//
			// uxIDLabel
			//
			this.uxIDLabel.Text = "ID:";
			this.uxIDLabel.Location = new System.Drawing.Point(3, 0);
			this.Controls.Add(this.uxIDLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxIDLabel);			
			//
			// uxID
			//
			this.uxID.ReadOnly = true;
			//this.uxTableLayoutPanel.Controls.Add(this.uxID);
			this.uxID.Location = new System.Drawing.Point(160, 0);
			this.Controls.Add(this.uxID);
			//
			// uxOznakaLabel
			//
			this.uxOznakaLabel.Text = "Oznaka:";
			this.uxOznakaLabel.Location = new System.Drawing.Point(3, 26);
			this.Controls.Add(this.uxOznakaLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxOznakaLabel);			
			//
			// uxOznaka
			//
			this.uxOznaka.Width = 250;
			this.uxOznaka.MaxLength = 50;
			//this.uxTableLayoutPanel.Controls.Add(this.uxOznaka);
			this.uxOznaka.Location = new System.Drawing.Point(160, 26);
			this.Controls.Add(this.uxOznaka);
			//
			// uxIDDjelatnikLabel
			//
			this.uxIDDjelatnikLabel.Text = "IDDjelatnik:";
			this.uxIDDjelatnikLabel.Location = new System.Drawing.Point(3, 52);
			this.Controls.Add(this.uxIDDjelatnikLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxIDDjelatnikLabel);			
			//
			// uxIDDjelatnik
			//
			//this.uxTableLayoutPanel.Controls.Add(this.uxIDDjelatnik);
			this.uxIDDjelatnik.Location = new System.Drawing.Point(160, 52);
			this.Controls.Add(this.uxIDDjelatnik);
			//
			// uxDatumLabel
			//
			this.uxDatumLabel.Text = "Datum:";
			this.uxDatumLabel.Location = new System.Drawing.Point(3, 78);
			this.Controls.Add(this.uxDatumLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxDatumLabel);			
			//
			// uxDatum
			//
			//this.uxTableLayoutPanel.Controls.Add(this.uxDatum);
			this.uxDatum.Location = new System.Drawing.Point(160, 78);
			this.Controls.Add(this.uxDatum);
			//
			// uxDatumObracunaLabel
			//
			this.uxDatumObracunaLabel.Text = "DatumObracuna:";
			this.uxDatumObracunaLabel.Location = new System.Drawing.Point(3, 104);
			this.Controls.Add(this.uxDatumObracunaLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxDatumObracunaLabel);			
			//
			// uxDatumObracuna
			//
			//this.uxTableLayoutPanel.Controls.Add(this.uxDatumObracuna);
			this.uxDatumObracuna.Location = new System.Drawing.Point(160, 104);
			this.Controls.Add(this.uxDatumObracuna);
			//
			// uxOpisLabel
			//
			this.uxOpisLabel.Text = "Opis:";
			this.uxOpisLabel.Location = new System.Drawing.Point(3, 130);
			this.Controls.Add(this.uxOpisLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxOpisLabel);			
			//
			// uxOpis
			//
			this.uxOpis.Width = 250;
			this.uxOpis.Multiline = true;
			//this.uxOpis.Height = 80;
			//this.uxTableLayoutPanel.Controls.Add(this.uxOpis);
			this.uxOpis.Location = new System.Drawing.Point(160, 130);
			this.Controls.Add(this.uxOpis);
			//
			// uxIDStatusLabel
			//
			this.uxIDStatusLabel.Text = "IDStatus:";
			this.uxIDStatusLabel.Location = new System.Drawing.Point(3, 156);
			this.Controls.Add(this.uxIDStatusLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxIDStatusLabel);			
			//
			// uxIDStatus
			//
			//this.uxTableLayoutPanel.Controls.Add(this.uxIDStatus);
			this.uxIDStatus.Location = new System.Drawing.Point(160, 156);
			this.Controls.Add(this.uxIDStatus);
			//
			// uxIDBlagajnaStavkaIsplataLabel
			//
			this.uxIDBlagajnaStavkaIsplataLabel.Text = "IDBlagajnaStavkaIsplata:";
			this.uxIDBlagajnaStavkaIsplataLabel.Location = new System.Drawing.Point(3, 182);
			this.Controls.Add(this.uxIDBlagajnaStavkaIsplataLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxIDBlagajnaStavkaIsplataLabel);			
			//
			// uxIDBlagajnaStavkaIsplata
			//
			//this.uxTableLayoutPanel.Controls.Add(this.uxIDBlagajnaStavkaIsplata);
			this.uxIDBlagajnaStavkaIsplata.Location = new System.Drawing.Point(160, 182);
			this.Controls.Add(this.uxIDBlagajnaStavkaIsplata);
			//
			// uxIDBlagajnaStavkaStornoLabel
			//
			this.uxIDBlagajnaStavkaStornoLabel.Text = "IDBlagajnaStavkaStorno:";
			this.uxIDBlagajnaStavkaStornoLabel.Location = new System.Drawing.Point(3, 208);
			this.Controls.Add(this.uxIDBlagajnaStavkaStornoLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxIDBlagajnaStavkaStornoLabel);			
			//
			// uxIDBlagajnaStavkaStorno
			//
			//this.uxTableLayoutPanel.Controls.Add(this.uxIDBlagajnaStavkaStorno);
			this.uxIDBlagajnaStavkaStorno.Location = new System.Drawing.Point(160, 208);
			this.Controls.Add(this.uxIDBlagajnaStavkaStorno);
			//
			// uxPredvidenoTrajanjeLabel
			//
			this.uxPredvidenoTrajanjeLabel.Text = "PredvidenoTrajanje:";
			this.uxPredvidenoTrajanjeLabel.Location = new System.Drawing.Point(3, 234);
			this.Controls.Add(this.uxPredvidenoTrajanjeLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxPredvidenoTrajanjeLabel);			
			//
			// uxPredvidenoTrajanje
			//
			this.uxPredvidenoTrajanje.Width = 250;
			this.uxPredvidenoTrajanje.MaxLength = 150;
			//this.uxTableLayoutPanel.Controls.Add(this.uxPredvidenoTrajanje);
			this.uxPredvidenoTrajanje.Location = new System.Drawing.Point(160, 234);
			this.Controls.Add(this.uxPredvidenoTrajanje);
			//
			// uxPredvidenoTrajanjeDanaLabel
			//
			this.uxPredvidenoTrajanjeDanaLabel.Text = "PredvidenoTrajanjeDana:";
			this.uxPredvidenoTrajanjeDanaLabel.Location = new System.Drawing.Point(3, 260);
			this.Controls.Add(this.uxPredvidenoTrajanjeDanaLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxPredvidenoTrajanjeDanaLabel);			
			//
			// uxPredvidenoTrajanjeDana
			//
			//this.uxTableLayoutPanel.Controls.Add(this.uxPredvidenoTrajanjeDana);
			this.uxPredvidenoTrajanjeDana.Location = new System.Drawing.Point(160, 260);
			this.Controls.Add(this.uxPredvidenoTrajanjeDana);
			//
			// uxNapomenaLabel
			//
			this.uxNapomenaLabel.Text = "Napomena:";
			this.uxNapomenaLabel.Location = new System.Drawing.Point(3, 286);
			this.Controls.Add(this.uxNapomenaLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxNapomenaLabel);			
			//
			// uxNapomena
			//
			this.uxNapomena.Width = 250;
			this.uxNapomena.Multiline = true;
			//this.uxNapomena.Height = 80;
			//this.uxTableLayoutPanel.Controls.Add(this.uxNapomena);
			this.uxNapomena.Location = new System.Drawing.Point(160, 286);
			this.Controls.Add(this.uxNapomena);
			//
			// uxIDDjelatnikOdobrioLabel
			//
			this.uxIDDjelatnikOdobrioLabel.Text = "IDDjelatnikOdobrio:";
			this.uxIDDjelatnikOdobrioLabel.Location = new System.Drawing.Point(3, 312);
			this.Controls.Add(this.uxIDDjelatnikOdobrioLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxIDDjelatnikOdobrioLabel);			
			//
			// uxIDDjelatnikOdobrio
			//
			//this.uxTableLayoutPanel.Controls.Add(this.uxIDDjelatnikOdobrio);
			this.uxIDDjelatnikOdobrio.Location = new System.Drawing.Point(160, 312);
			this.Controls.Add(this.uxIDDjelatnikOdobrio);
			//
			// uxIzvjestajPutovanjaLabel
			//
			this.uxIzvjestajPutovanjaLabel.Text = "IzvjestajPutovanja:";
			this.uxIzvjestajPutovanjaLabel.Location = new System.Drawing.Point(3, 338);
			this.Controls.Add(this.uxIzvjestajPutovanjaLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxIzvjestajPutovanjaLabel);			
			//
			// uxIzvjestajPutovanja
			//
			this.uxIzvjestajPutovanja.Width = 250;
			this.uxIzvjestajPutovanja.Multiline = true;
			//this.uxIzvjestajPutovanja.Height = 80;
			//this.uxTableLayoutPanel.Controls.Add(this.uxIzvjestajPutovanja);
			this.uxIzvjestajPutovanja.Location = new System.Drawing.Point(160, 338);
			this.Controls.Add(this.uxIzvjestajPutovanja);
			//
			// uxIDDjelatnikLikvidiraoLabel
			//
			this.uxIDDjelatnikLikvidiraoLabel.Text = "IDDjelatnikLikvidirao:";
			this.uxIDDjelatnikLikvidiraoLabel.Location = new System.Drawing.Point(3, 364);
			this.Controls.Add(this.uxIDDjelatnikLikvidiraoLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxIDDjelatnikLikvidiraoLabel);			
			//
			// uxIDDjelatnikLikvidirao
			//
			//this.uxTableLayoutPanel.Controls.Add(this.uxIDDjelatnikLikvidirao);
			this.uxIDDjelatnikLikvidirao.Location = new System.Drawing.Point(160, 364);
			this.Controls.Add(this.uxIDDjelatnikLikvidirao);
			//
			// uxIDDjelatnikBlagajnaLabel
			//
			this.uxIDDjelatnikBlagajnaLabel.Text = "IDDjelatnikBlagajna:";
			this.uxIDDjelatnikBlagajnaLabel.Location = new System.Drawing.Point(3, 390);
			this.Controls.Add(this.uxIDDjelatnikBlagajnaLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxIDDjelatnikBlagajnaLabel);			
			//
			// uxIDDjelatnikBlagajna
			//
			//this.uxTableLayoutPanel.Controls.Add(this.uxIDDjelatnikBlagajna);
			this.uxIDDjelatnikBlagajna.Location = new System.Drawing.Point(160, 390);
			this.Controls.Add(this.uxIDDjelatnikBlagajna);
			//
			// uxRedBrLabel
			//
			this.uxRedBrLabel.Text = "RedBr:";
			this.uxRedBrLabel.Location = new System.Drawing.Point(3, 416);
			this.Controls.Add(this.uxRedBrLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxRedBrLabel);			
			//
			// uxRedBr
			//
			//this.uxTableLayoutPanel.Controls.Add(this.uxRedBr);
			this.uxRedBr.Location = new System.Drawing.Point(160, 416);
			this.Controls.Add(this.uxRedBr);
			//
			// uxIDBlagajnaStavkaIsplata
			//				
			this.uxIDBlagajnaStavkaIsplata.DisplayMember = "IDBlagajnaIzvjestaj";	
			this.uxIDBlagajnaStavkaIsplata.ValueMember = "ID";	
			//
			// uxIDDjelatnik
			//				
			this.uxIDDjelatnik.DisplayMember = "Ime";	
			this.uxIDDjelatnik.ValueMember = "ID";	
			// 
			// PutniNalogEditControlBase
			// 
			this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
			this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
			//this.Controls.Add(this.uxTableLayoutPanel);
			this.AutoScroll = true;
			this.Name = "PutniNalogEditControlBase";
			this.Size = new System.Drawing.Size(478, 311);
			//this.Localizable = true;
			((System.ComponentModel.ISupportInitialize)(this.uxErrorProvider)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.uxBindingSource)).EndInit();			
			this.ResumeLayout(false);
			this.PerformLayout();
		}
		#endregion
				
		#region ComboBox List
		
				
		private Entities.TList<Entities.BlagajnaStavka> _IDBlagajnaStavkaIsplataList;
		
		/// <summary>
		/// The ComboBox associated with the IDBlagajnaStavkaIsplata property.
		/// </summary>
		[System.ComponentModel.Category("ComboBox BindingSources")]
		public Entities.TList<Entities.BlagajnaStavka> IDBlagajnaStavkaIsplataList
		{
			get {return _IDBlagajnaStavkaIsplataList;}
			set 
			{
				this._IDBlagajnaStavkaIsplataList = value;
				this.uxIDBlagajnaStavkaIsplata.DataSource = null;
				this.uxIDBlagajnaStavkaIsplata.DataSource = value;
			}
		}
		
		private bool _allowNewItemInIDBlagajnaStavkaIsplataList;
		
		/// <summary>
		/// Indicates if the ComboBox associated with the IDBlagajnaStavkaIsplata property allow user to add item.
		/// </summary>
		[System.ComponentModel.Category(".netTiers"), System.ComponentModel.Description("Indicates if end user can add a new item in the combobox. an event will be thrown then.")]
		public bool AllowNewItemInIDBlagajnaStavkaIsplataList
		{
			get { return _allowNewItemInIDBlagajnaStavkaIsplataList;}
			set
			{
				this._allowNewItemInIDBlagajnaStavkaIsplataList = value;
				this.uxIDBlagajnaStavkaIsplata.DropDownStyle = value ? System.Windows.Forms.ComboBoxStyle.DropDown : System.Windows.Forms.ComboBoxStyle.DropDownList;
			}
		}
		
				
		private Entities.TList<Entities.Osoba> _IDDjelatnikList;
		
		/// <summary>
		/// The ComboBox associated with the IDDjelatnik property.
		/// </summary>
		[System.ComponentModel.Category("ComboBox BindingSources")]
		public Entities.TList<Entities.Osoba> IDDjelatnikList
		{
			get {return _IDDjelatnikList;}
			set 
			{
				this._IDDjelatnikList = value;
				this.uxIDDjelatnik.DataSource = null;
				this.uxIDDjelatnik.DataSource = value;
			}
		}
		
		private bool _allowNewItemInIDDjelatnikList;
		
		/// <summary>
		/// Indicates if the ComboBox associated with the IDDjelatnik property allow user to add item.
		/// </summary>
		[System.ComponentModel.Category(".netTiers"), System.ComponentModel.Description("Indicates if end user can add a new item in the combobox. an event will be thrown then.")]
		public bool AllowNewItemInIDDjelatnikList
		{
			get { return _allowNewItemInIDDjelatnikList;}
			set
			{
				this._allowNewItemInIDDjelatnikList = value;
				this.uxIDDjelatnik.DropDownStyle = value ? System.Windows.Forms.ComboBoxStyle.DropDown : System.Windows.Forms.ComboBoxStyle.DropDownList;
			}
		}
		
		
		#endregion
		
		/// <summary> 
		/// Required designer variable.
		/// </summary>
		private System.ComponentModel.IContainer components = null;

		/// <summary> 
		/// Clean up any resources being used.
		/// </summary>
		/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
		protected override void Dispose(bool disposing)
		{
			if (disposing && (components != null))
			{
				components.Dispose();
			}
			base.Dispose(disposing);
		}
	}
}
